#!/usr/bin/python
#coding=utf-8
import sys
from sys import argv
script,imageName=argv

from PIL import Image
img = Image.open(imageName)
img=img.rotate(90,expand=1)
img.save(imageName)